import React from 'react'
import ReactDOM from 'react-dom/client'
// 1. 安装react-redux
// 2. 导入Provider组件
import { Provider } from 'react-redux'
import App from './App';
import store from './store'
const root = ReactDOM.createRoot(document.querySelector('#root'));


root.render((
    <>
    {/* 3. 使用Provider包裹App根组件并传递store数据 */}
        <Provider store={store}>
            <App />
        </Provider>
    </>
))